import { EventSourcePolyfill } from "event-source-polyfill";

export const createSse = (url: string) => {
  return new EventSourcePolyfill(url, {
    headers: {
      Authorization: localStorage.getItem("Authorization")!,
    },
  });
};
